<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const data = [
        {name: 'jack', age: 20, msg: 'good'},
        {name: 'jack2', age: 21, msg: 'good'},
        {name: 'jack3', age: 22, msg:null },
    ]

    let [len, flag, arr] = [data.length, false, []]

    arr = len && Object.keys(data[0])

    for (let i = 0; i < len; i++) {
        for (let j = 0, len2 = arr.length; j < len2; j++) {
            if (!data[i][arr[j]]) {
                flag = true
                break
            }
        }
        if (flag) break
    }

    console.log(flag)
</script>
</body>
</html>